package com.yinile.zc03.domain;

import javax.persistence.Entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 书的实体类
 */
@Entity
@Table(schema="db1", name="t_book")
public class Book {
	@Id
	@Column(name="c_id",length=100)
	private String id;
	
	@Column(name="c_name",length=45)
	private String name;
	
	@Column(name="c_isbn",length=45)
	private String isbn;
	
	// decimal(5,2)
	@Column(name="c_price", precision=5, scale=2)
	private BigDecimal price;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

}
